package com.ewzj.bigdata.app.config

import com.baidu.location.BDLocation
import com.ewzj.bigdata.app.utils.RxSocket
import com.ewzj.bigdata.mvp.model.rspbean.CityBean
import com.ewzj.bigdata.mvp.model.rspbean.ConfigBean
import com.jess.arms.utils.UiUtils
import com.umeng.socialize.UMShareListener
import com.umeng.socialize.bean.SHARE_MEDIA

/**
 * author:zhangjing
 * 作用:
 * return:
 */
interface AppKey{
     companion object{
        val API_SUCCESS=0
        val PAGE_NUM=10
        val IMG_URL = "http://img.15miwo.cn"
        val IS_FIRST="kotlin_is_first"
        val API_TOKEN="api_token"
        val BAIDU_CHANNELID="baidu_channelid"
        val EXTRA_DATA="extra_data"
        val EXTRA_String="extra_string"
        val EXTRA_url="extra_url"
        val EXTRA_ID="extra_id"
        val LOCATION_CITY="city_info"
        val EXTRA_MAP_DATA="extra_map_data"
        val CUR_VERSION="cur_version"
        val SEARCH_HIS="search_his"
        val REQUEST_CODE=1023
        val REQUEST_SIGNCODE=1026
        val RESULT_CODE=1024
        val AD_URL="http://192.168.0.221/ads/getadvsource"
        val REQUEST_CODE_CHOOSE=1027
        var bdLocation:BDLocation?=null
         val UMENG_KEY = "591962efc62dca5cad00144d"
         var  mchaneObject:Any?=null
         val RENT_HIS="rent_his"
         val BUY_HIS="buy_his"
    }
    object city:CityBean.ListEntity()
    object mappConfig:ConfigBean()
    object locationListener:AppLocationListener()

    object umShareListener :UMShareListener {
        override fun onStart(platform: SHARE_MEDIA) {
            //分享开始的回调
        }

        override fun onResult(platform: SHARE_MEDIA) {
           UiUtils.SnackbarText(" 分享成功啦")
        }

        override fun onError(platform: SHARE_MEDIA, t: Throwable?) {
            UiUtils.SnackbarText(" 分享失败啦")
        }

        override fun onCancel(platform: SHARE_MEDIA) {
            UiUtils.SnackbarText(" 取消分享")
        }
    }
}